﻿@model InsightAuto.Domain.Core.Brand

@section pageHeader{
    <link href="@Url.Content("~/Content/brand.css")" rel="stylesheet" type="text/css" />
}

@{
    var dict = ViewBag.SeriesDictionary as Dictionary<int, IEnumerable<IGrouping<int, Model>>>;
}

@section navigatePath{
    @Html.Action("Brand", "Navigate", new { id = Model.ID })
}

@section mainHeader{
    <div id="BrandName">@Model.Name</div>
}
    <div id="Left">
        <div id="Logo">@Model.Name</div>
        <div id="Sumary">@Model.Name</div>
        <div id="SeriesList">
        @foreach(var series in Model.Series)
        {
        <div class="series">
            <table><tr>
                <td><img alt="图片" src="../../Images/Carmark/1364.jpg" /></td>
                <td>
                    <table>
                        <tr><td>@Html.ActionLink(series.Name, "Series", new { id = series.ID }) @series.Class.Name</td></tr>
                        <tr><td>网友口碑（最高100分）：77分  各项详细评分</td></tr>
                        <tr><td>图片(1889)    新闻(500)    论坛(0)    答疑(0)</td></tr>
                    </table>
                </td>
            </tr></table>
            @foreach (var models in dict[series.ID])
            {
            <table>
                <thead><tr>
                    <td>@(models.Key)年车型</td>
                    <td>价格</td>
                    <td>排量</td>
                </tr></thead>
                <tbody>
                    @foreach (var m in models)
                    {
                    <tr>
                    <td>@Html.ActionLink(m.Name, "Model", new { id = m.ID })</td>
                    <td>@m.Prices.Min(p=>p.Value)万-@m.Prices.Max(p=>p.Value)万</td>
                    <td>@m.Detail.Displacement L</td>
                    </tr>
                    }
                </tbody>
            </table>
            }
        </div>
        }
    </div>
    </div>
    <div id="Right">
            <div class="rightPanel">该品牌新车型</div>
        <div class="rightPanel">该品牌热门车型</div>
    </div>
